<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>商品品牌</title>
 <%@ include file="/page/include.jsp" %>
</head>
<link rel="stylesheet" type="text/css" href="<%=basePath%>/statics/plugins/zTree/css/zTreeStyle/zTreeStyle.css" />
<style type="text/css">
.error {
	color: red;
	padding-left: 10px;
}
</style>
<body class="nav-md" style="background-color: #f7f7f7">
    <div class="container body">
      <div class="main_container">
        <div class="framebody" style="min-height: 100%;" role="main">
          <div class="">
            <div class="clearfix"></div>
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_content">
                    <form class="form-horizontal form-label-left" id="productBrandForm" action="<%=basePath%>/productBrand/saveProductBrand" method="post">
                      <input id="id" name="id" value="${productBrand.id}" class="form-control"  type="hidden">
                      <div class="item form-group">
                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="brandNameCh">上级品牌: 
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input id="parentBrandCode" name="parentBrandCode" type="hidden" value="0" />
                          <input type="text" id="parentBrandName" name="parentBrandName" value="一级品牌"  class="dropDownTreeMenu form-control col-md-3 col-xs-12">
                          <span class="caret" id="spanMenu" style="cursor: pointer;float: right;font-size: 20px;margin-right: 10px;margin-top: -20px;position: relative;"></span>
                        </div>
                      </div>
                      
                      <div class="item form-group">
                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="brandNameCh">中文名称: 
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input id="brandNameCh" name="brandNameCh" value="${productBrand.brandNameCh}" class="form-control"  type="text">
                        </div>
                      </div>
                      
                      <div class="item form-group">
                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="brandLetterFrist">名称首字母: 
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input id="brandLetterFrist" name="brandLetterFrist" value="${productBrand.brandLetterFrist }" class="form-control"  type="text">
                        </div>
                      </div>
                      
                      <div class="item form-group">
                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="brandNameEn">英文名称: 
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <input id="brandNameEn" name="brandNameEn" value="${productBrand.brandNameEn }" class="form-control"  type="text">
                        </div>
                      </div>
                      
                      
                      <div class="item form-group">
                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="brandImage">品牌LOGO: 
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                         	<div class="uploadpic_part">
                             	<ul id="image_container">
                                    <c:if test="${ not empty productBrand.brandImage }">
                                        <li class="removeLi">
                                            <div class="pic1">
                                                <img src="<%=PublicConfig.IMG_ROOT_URL%>${productBrand.brandImage }" /> <a id="btn_close" href="javascript:$('.removeLi').remove();$('#brandImage').val('');" class="icon_close"></a>
                                                <input type="hidden" id="brandImage" name="brandImage" value="${productBrand.brandImage }" />
                                            </div>
                                        </li>
                                    </c:if>
                                 	<li>
                                     	<div class="pic1">
                                         	<img src="${rootPath}/statics/images/upload_pic1.png" />
                                             <input id="upload_brand_image" type="file" name="upload_brand_image" onchange="ajaxFileUpload(this)" />
                                         </div>
                                     </li>
                                 </ul>
                           </div>
                           <span  class="pictips">尺寸:102像素 * 36像素,大小不超过1M</span>
                        </div>
                      </div>
                      
                      <div class="item form-group">
                        <label class="control-label col-md-2 col-sm-2 col-xs-12" for="brandIntro">备      注: 
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                          <textarea id="brandIntro" name="brandIntro" class="form-control">${productBrand.brandIntro }</textarea>
                        </div>
                      </div>
                      
                      <div class="ln_solid"></div>
                     <div class="form-btn-content">
                          <a id="btn_save" class="btn btn-primary" ><i class="fa fa-check fa-fw"></i>确定</a>
                          <a id="btn_back" class="btn btn-default" ><i class="fa fa-reply fa-fw"></i>关闭</a>
                     </div>
                    </form>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 上级品牌ztree -->
	<div id="brandContent" style="display:none; position: absolute;background:#fff;overflow: auto;width:150px; height: 240px; border: 1px solid #aaa; z-index:999">
		<ul id="treeMenu" class="ztree" style="margin-top:0;"></ul>
	</div>
  </body>
  <script type="text/javascript"  src="<%=basePath%>/statics/js/chToPinYin.js"></script>
  <script type="text/javascript"  src="<%=basePath%>/statics/plugins/upload/ajaxfileupload.js"></script>
  <script type="text/javascript"  src="<%=basePath%>/statics/plugins/zTree/js/jquery.ztree.all-3.5.min.js"></script>
  <script type="text/javascript"  src="<%=basePath%>/js/product/productBrand_form.js"></script>
</html>